from django.db import models
from django.contrib.auth.models import User

class Group(models.Model):
    group_name      = models.CharField(max_length = 150)
    group_subject   = models.TextField()
    owner           = models.ForeignKey(User, related_name="Owner")
    group_users     = models.ManyToManyField(User, blank=True)
   
    def __unicode__(self):
        return self.group_name
    
